package com.jojo.bubble.service;

import com.jojo.bubble.entity.Agent;
import com.jojo.bubble.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 订单表(Order)表服务接口
 *
 * @author jojo
 * @since 2023-08-08 13:43:21
 */
public interface OrderService {
    int count(Order record);

    int insert(Order record);

    int update(Order record);

    Order getInfo(int id);

    List<Order> getList(Order record);

    int delete(int id);

    int updateStatus(Integer id);

    Order getInfoByOrderNo(String orderNo);

    List<Order> queryAllByLimit(Order order,List<Integer> agentList, @Param("pageable") Pageable pageable);
}
